<%-- 
    Document   : DanhMucContent
    Created on : Oct 19, 2011, 10:26:27 PM
    Author     : Admin
--%>

<%@page import="model.pojo.Danhmuc"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>


<div>


    <form id="frmDanhMuc" name="frmDanhMuc" method="post" action="">
        <table width="545" border="0" align="center">
            <tr align="center">
                <td width="20"><strong>Mã</strong></td>
                <td width="134"><strong>Tên Danh Mục</strong></td>
                <td width="150"><strong>Ngày Tạo</strong></td>
                <td width="45"><strong>Edit </strong></td>

                <td width="45"><strong>Xóa</strong></td>
            </tr>
            <%
                List<Danhmuc> ds = (List<Danhmuc>) request.getAttribute("DanhMuc");
                for (int i = 0; i < ds.size(); i++) {
                    Danhmuc d = ds.get(i);
            %>
            <tr align="center">
                <td><%= d.getId()%></td>
                <td >
                    <%=d.getTenDanhMuc()%></td>
                <td>
                    <%= d.getNgayTao()%></td>
                <td ><a href="DanhMucController?Action=EditDanhMuc&id=<%=d.getId()%>"><input type="submit" name="btnEdit"  value="Edit"/></a></td>

                <td ><input type="submit" name="btnXoa" value="Xóa"/></td>

            </tr>
            <%}%>
        </table>
    </form>



</div>
